#include<gflags/gflags.h>
#include<iostream>

DEFINE_string(ip, "127.0.0.1", "ip地址，格式为127.0.0.1");
DEFINE_int32(port,8080,"端口，格式：8080");
DEFINE_bool(debug_enable,true, "是否开启debug模式");

using namespace std;
int main(int argc,char* argv[])
{
    google::ParseCommandLineFlags(&argc,&argv,true);
    cout<<FLAGS_ip<<endl;
    cout<<FLAGS_port<<endl;
    cout<<FLAGS_debug_enable<<endl;
    return 0;
}